package com.mop.controller;

import com.mop.pojo.User;
import com.mop.service.SignInService;
import com.mop.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/SignIn")
public class SignInController {
    @Autowired
    private SignInService signInService;
    @PostMapping("/addSignIn")
    public SysResult addSignIn(@RequestBody User user){
signInService.addSignIn(user);
return SysResult.success();
    }
}
